const express = require('express');
const router = express.Router();
const {auth} = require('../controller/auth');
const {
    addHouseType,
    getHouseType,
    updateHouseType,
    removeHouseType,
    getHouseTypeById
} = require('../controller/houseType');

router.post('/', auth, addHouseType);
router.get('/:id', getHouseTypeById);
router.get('/', getHouseType);
router.patch('/', auth, updateHouseType);
router.delete('/:houseType', auth, removeHouseType);

module.exports = router;
